let vm=new Vue({
    el:"#myUserMain",
    data:{
        pageInfo:{
            pageNum:1,
            pageSize:5,
        },
        userLoginInfo:{},
        flag:'',
    },
    methods:{
        followList: function (pageNum,pageSize) {
            axios({
                url: `userList/followList/${pageNum}/${pageSize}`,
                method: 'post',
                data:{
                    id:this.userLoginInfo.data.id
                }
            }).then(res => {
                this.pageInfo=res.data.data
            })
        }
    },
    created:function () {
        this.flag='2';
        let userInfo = sessionStorage.getItem("vmUserInfo");
        if (userInfo != null) {
            this.userLoginInfo = JSON.parse(userInfo);
        } else {
            location.href = "";
        }
        this.followList(this.pageInfo.pageNum,this.pageInfo.pageSize)

    },
    mounted(){
        // // window事件对象调用this.xxx
        // window.onClickKeyCode=this.xxx
        console.log(this.userLoginInfo.id)
    },
});